package com.petshop.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @TableName products
 */
@TableName(value = "products")
@Data
public class Products implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId("product_id")
    private Integer productId;
    private String category;
    private String name;
    private String description;
    private BigDecimal price;
    private Integer stock;
    private String imageUrl;
    private Date createdAt;
    private Date updatedAt;
    @Version
    private Integer version;
}